package digimon.organism.instructions;

import digimon.Main;

public class InstructionM extends Instruction {
	public InstructionM() {
		// setType(Main.rng.giveMeRandom(InstructionSet.TOTAL+InstructionSetM.SUBTOTAL));
		int i = Main.rng.giveMeRandom(InstructionSet.TOTAL+InstructionSetM.SUBTOTAL);
		// If the instruction set is from generic instructionSet, then set this number
		if(i <= InstructionSet.TOTAL){
			setType(i);
		// If not, we need to set the type number relative to InstructionSetV - that's starting with 201
		} else {
			// Fist we need to count how much 'i' has passed from the InstructionSet.TOTAl
			// So, we need to set the type to the the i_st instruction from InstructionSetV 
			i = i - InstructionSet.TOTAL;
			setType(200+i);
		}
	}

}
